import Home1 from '../views/home/Home1.vue'
import Center from '../views/center/center.vue'
import UserAdd from "../views/userManage/UserAdd.vue"
import UserList from "../views/userManage/UserList.vue"

import NewsAdd from "../views/newsManage/NewsAdd.vue"
import NewsList from "../views/newsManage/NewsList.vue"
import EditNews from "../views/newsManage/EditNews.vue"
import ProductAdd from "../views/productManage/ProductAdd.vue"
import ProductList from "../views/productManage/ProductList.vue"
import ProductEdit from "../views/productManage/ProductEdit.vue"
import NotFound from "../views/notFound/NotFound.vue"
import Category from "../views/questionManage/QuestionCategory.vue" 
import QuestionList from "../views/questionManage/QuestionList.vue" 
import QuestionAdd from "../views/questionManage/QuestionAdd.vue" 
import QuestionEdit from "../views/questionManage/QuestionEdit.vue" 
import Activation from "../views/activation/activation.vue" 
import NoteList from "../views/noteList/NoteList.vue" 
import ClockIn from "../views/clockIn/clockIn.vue"
import NoticeAdd from "../views/notice/NoticeAdd.vue"
import NoticeList from "../views/notice/NoticeList.vue"
import Config from "../views/config/Config.vue"
import Order from "../views/order/Order.vue"

const routes = [
    {
        path:"/index",
        component:Home1
    },
    {
        path:"/center",
        component:Center
    },
    {
      path:"/activation",
      component:Activation
    },
    {
      path:"/userManage/userAdd",
      name:"userAdd",
      component:UserAdd,
  
    },
    {
      path:"/order",
      name:"Order",
      component:Order,
    },
    {
      path:"/adminConfig",
      name:"config",
      component:Config,
    },
    {
      path:"/userList",
      name:"userList",
      component:UserList,
   
    },
    {
      path:"/notice/noticeAdd",
      name:"/notice/noticeAdd",
      component:NoticeAdd,
   
    },
    {
      path:"/notice/noticeList",
      name:"/notice/noticeList",
      component:NoticeList,
   
    },
    {
      path:"/clockIn",
      name:"clockIn",
      component:ClockIn,
   
    },
    {
      path:"/newsManage/newsAdd",
      name:"newsAdd",
      component:NewsAdd,
     
    },
    {
      path:"/newsManage/editNews/:id",
      name:"editNews",
      component:EditNews,
    },
    {
      path:"/newsManage/editNews/:id",
      name:"editNews",
      component:EditNews,
    },
    {
      path:"/newsManage/newsList",
      name:"newsList",
      component:NewsList
    },
    {
      path:"/productManage/productList",
      name:"productList",
      component:ProductList
    },
    {
      path:"/productManage/productAdd",
      name:"productAdd",
      component:ProductAdd
    },
    {
      path:"/productManage/productEdit/:id",
      name:"productEdit",
      component:ProductEdit
    },
    {
      path:"/noteList",
      name:"noteList",
      component:NoteList
    },
    {
      path:"/questionManage/category",
      name:"category",
      component:Category
    },
    {
      path:"/questionManage/questionList",
      name:"questionList",
      component:QuestionList
    },
    {
      path:"/questionManage/questionAdd",
      name:"questionAdd",
      component:QuestionAdd
    },
    {
      path:"/questionManage/questionEdit/:id",
      name:"questionEdit",
      component:QuestionEdit
    },
    {
        path:"/",
        redirect:"/index"
    },{
        path:"/:pathMatch(.*)*",
        name:"notFound",
        component:NotFound
    }
]

export default routes